// 按需全局引入 vant组件
import Vue from 'vue'
import { Search, Popup, Button, PullRefresh, List, Cell, Tabbar, TabbarItem, Overlay, Loading, Toast, Picker, Field } from 'vant'



Vue.use(Search);
Vue.use(Popup);
Vue.use(Picker);
Vue.use(PullRefresh);
Vue.use(Button)
Vue.use(Cell)
Vue.use(List)
Vue.use(Tabbar).use(TabbarItem)
Vue.use(Overlay);
Vue.use(Loading);
Vue.use(Toast);
Vue.use(Field);

//  注册全局组件
import DefineLoading from '@/components/Loading.vue'
//  整体布局
import Pannel from '@/components/Pannel/index.vue'
//  懒加载图片
import LazyImage from '@/components/LazyImage/index.vue';
//  封装 - 选择框
import DSelect from '@/components/DSelect/index.vue';

Vue.component("Loading", DefineLoading);
Vue.component("Pannel", Pannel);
Vue.component("LazyImage", LazyImage);
Vue.component('DSelect', DSelect);
